export function hasPropsChanged(prevProps, nextProps) {
  const nextKeys = Object.keys(nextProps)
  if(nextKeys.length !== Object.keys(prevProps).length) {
    return true
  }
  for(let i = 0; i < nextKeys.length; i++) {
    const key = nextKeys[i]
    if(nextProps[key] !== prevProps[key]) return true
  }
  return false
}